const mime = require('mime') 

// 获取路径对应的MIME类型
console.log(mime.getType('a/b/c.html'));
console.log(mime.getType('a/b/d.js'));
console.log(mime.getType('images/border.jpg'));
console.log(mime.getType('a/b/index.css'));